home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / init.d / mountnfs-bootclean.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2008-10-14  |  618b  |  32 lines

  1. #! /bin/sh
  2. ### BEGIN INIT INFO
  3. # Provides:          mountnfs-bootclean
  4. # Required-Start:    mountnfs
  5. # Required-Stop:
  6. # Default-Start:     S
  7. # Default-Stop:
  8. # Short-Description: bootclean after mountnfs.
  9. # Description:       Clean temporary filesystems after
  10. #                    network filesystems have been mounted.
  11. ### END INIT INFO
  12.  
  13. case "$1" in
  14.   start|"")
  15.     # Clean /tmp, /var/lock, /var/run
  16.     . /lib/init/bootclean.sh
  17.     ;;
  18.   restart|reload|force-reload)
  19.     echo "Error: argument '$1' not supported" >&2
  20.     exit 3
  21.     ;;
  22.   stop)
  23.     # No-op
  24.     ;;
  25.   *)
  26.     echo "Usage: mountnfs-bootclean.sh [start|stop]" >&2
  27.     exit 3
  28.     ;;
  29. esac
  30.  
  31. :
  32.